package com.shadt.cloud.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 栏目权限
 * 
 * 分平台拥的栏目权限
 * 
 * 由分平台向云平台申请
 * 
 * @author SongR
 *
 */
@Entity
@Table(name="cms_cloud_branch_channel")
public class CloudBranchChannel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private Long id;//编号
	@Column(name="channel_key")
	private String key;//栏目key
	@Column(name="channel_name")
	private String name;//栏目名称
	@Column(name="starttime")
	private Date starttime;//有效期开始时间
	@Column(name="endtime")
	private Date endtime;//有效期结束时间
	@Column(name="creattime")
	private Date creattime;//申请时间
	@Column(name="status")
	private int status;//状态(-1、删除  0、可用  1、禁用 2、申请中3、申请不通过)
	@Column(name="branch_id")
	private Long branchid;//分平台编号
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getStarttime() {
		return starttime;
	}
	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}
	public Date getEndtime() {
		return endtime;
	}
	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}
	public Date getCreattime() {
		return creattime;
	}
	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Long getBranchid() {
		return branchid;
	}
	public void setBranchid(Long branchid) {
		this.branchid = branchid;
	}
}
